package com.tbryant.test.redis.usagescenarios;

import redis.clients.jedis.JedisPubSub;

/**
 * 发布订阅
 *
 * @auther TBryant
 * @date 2021/5/28 11:20
 */
public class PubSubListener extends JedisPubSub {
    @Override
    public void onMessage(String channel, String message) {
        System.out.println("channel->" + channel);
        System.out.println("message->" + message);
    }
}
